import request from '@/utils/request.js'


export function getList(data) {
  return request({
    url: `/api1/plmProductDevelopmentPipeline/list`,
    method: 'post',
    data
  })
}

export function getItem(id) {
  return request({
    url: `/api1/plmProductDevelopmentPipeline/getbyid`,
    method: 'get',
    params: {
      id
    }
  })
}

export function update(data) {
  return request({
    url: `/api1/plmProductDevelopmentPipeline/update`,
    method: 'post',
    data
  })
}

export function add(data) {
  return request({
    url: `/api1/plmProductDevelopmentPipeline/add`,
    method: 'post',
    data
  })
}


export function del(id) {
  return request({
    url: `/api1/plmProductDevelopmentPipeline/delbyid`,
    method: 'get',
    params:{id}
  })
}

// 查询日志
export function getLogs(data) {
  return request({
    url: '/api1/plmProductDevelopmentPipeline/getlogs' ,
    method: 'post',
    data: data
  })
}

